/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ec.entity;

import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 规格管理Entity
 * @author zkool
 * @version 2016-03-05
 */
public class ItemSpec extends DataEntity<ItemSpec> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String type;		// 类型
	private List<ItemSpecValue> itemSpecValueList = Lists.newArrayList();		// 子表列表
	
	public ItemSpec() {
		super();
	}

	public ItemSpec(String id){
		super(id);
	}

	@Length(min=1, max=100, message="名称长度必须介于 1 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=1, message="类型长度必须介于 1 和 1 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	public List<ItemSpecValue> getItemSpecValueList() {
		return itemSpecValueList;
	}

	public void setItemSpecValueList(List<ItemSpecValue> itemSpecValueList) {
		this.itemSpecValueList = itemSpecValueList;
	}
}